package com.love.marriage.userTransactionInfo.mapper;

import com.love.marriage.userTransactionInfo.entity.UserTransactionInfo;
import com.love.marriage.userTransactionInfo.vo.UserTransactionInfoVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import com.love.marriage.common.interfaces.permission.DataPermission;

/**
 * description:  用户消费记录表 mapper
 * author:       mybatisPlus
 * createDate:   2024-10-17 07:58:40
 * version:      1.0.0
 */
@Mapper
public interface UserTransactionInfoMapper extends BaseMapper<UserTransactionInfo> {

    @DataPermission(table = "user_transaction_info_t")
    Page<UserTransactionInfoVo> getPage(Page<UserTransactionInfoVo> page, @Param("userTransactionInfoVo") UserTransactionInfoVo userTransactionInfoVo);

    UserTransactionInfoVo queryUserTransactionInfo(@Param("id") Long id);
}
